package common

const (
	DevicesPath = "mss_devices"

	MTU = 1400

	TIMELAYOUT = "2006-01-02 15:04:05"

	// ----------- 协议名称 -------------
	PTL_MODBUS = "modbus"
	PTL_SNMP   = "snmp"

	// ----------- 驱动插件类型 -------------
	PT_STATIC  = "static"
	PT_DYNAMIC = "dynamic"

	// ----------  service value type -----------

	SVT_NUMBER = "number"
	SVT_TEXT   = "text"

	// ----------  modbus 类型 -----------
	MT_RTU   = "rtu"
	MT_ASCII = "ascii"
	MT_TCP   = "tcp"

	// ----------  字节序 -----------

	BO_BIG    = "big"
	BO_LITTLE = "little"
)

var (
	ITEM_TYPES = []string{SVT_TEXT, SVT_NUMBER}

	BYTES_ORDER = []string{BO_BIG, BO_LITTLE}
)
